package yaty.lee.tencent.weibo.modules.oauth2.acg.vo;

import yaty.lee.tencent.weibo.domain.VO;
import yaty.lee.tencent.weibo.util.OAuthPropertiesUtil;

public class RefreshTokenVO extends VO {
    private final String client_id = OAuthPropertiesUtil.getKey();
    private final String grant_type = "refresh_token";
    private String refresh_token;

    public RefreshTokenVO() {
        super();
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getClient_id() {
        return client_id;
    }

    public String getGrant_type() {
        return grant_type;
    }

    @Override
    public String getReqUrl() {
        return "https://open.t.qq.com/cgi-bin/oauth2/access_token";
    }

    public class Back {
        private String access_token;
        private long expires_in;
        private String refresh_token;
        private String name;

        public Back() {
            super();
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public long getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(long expires_in) {
            this.expires_in = expires_in;
        }

        public String getRefresh_token() {
            return refresh_token;
        }

        public void setRefresh_token(String refresh_token) {
            this.refresh_token = refresh_token;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

    }
}
